package com.gradle.lt.myapplication;

import android.app.Activity;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;


public class MainActivity extends Activity implements View.OnClickListener {
    private Button btn_come, btn_go, btn_stop;
    private TextView come, go;
    private SharedPreferences sharedPreferences;
    private SharedPreferences.Editor editor;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        sharedPreferences = getSharedPreferences("comego", MODE_PRIVATE);
        editor = sharedPreferences.edit();

        initView();

    }

    private void initView() {
        btn_come = (Button) findViewById(R.id.btn_come);
        btn_go = (Button) findViewById(R.id.btn_go);
        btn_stop = (Button) findViewById(R.id.btn_stop);
        come = (TextView) findViewById(R.id.come);
        go = (TextView) findViewById(R.id.go);

        btn_stop.setOnClickListener(this);
        btn_go.setOnClickListener(this);
        btn_come.setOnClickListener(this);

    }

    @Override
    public void onClick(View v) {

    }
}
